//
//  singlePeripheral.h
//  Lazy
//
//  Created by yoky on 14-6-27.
//  Copyright (c) 2014年 Echo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>


@interface singlePeripheral : NSObject<CBCentralManagerDelegate,CBPeripheralDelegate>{
    NSInteger bBeginAddData1, bBeginAddData2, bBeginAddData3;
    NSInteger bEndAddData1, bEndAddData2, bEndAddData3;
    NSInteger nEndAddData;
    NSMutableData *readData;
    BOOL isSyning;
    NSMutableArray *curArray;
    NSMutableDictionary *todayDic;
    
}
@property (nonatomic, assign) BOOL isSyning, isFindDeviceing;
@property (nonatomic, strong) NSMutableData *readData;
@property (nonatomic, strong) NSMutableDictionary *todayDic;
@property (nonatomic, strong) CBCentralManager *centeralManager;
@property (nonatomic, strong) CBPeripheral     *discoveredPeripheral;
+ (singlePeripheral *)instance;
-(void)connectDevice:(CBPeripheral*)peripheral;
-(void)sendDataToBluetooth:(NSString*)str;
- (void)startScan;
- (float)getTodayWaterMeasure;
+ (int)getSroce:(int)ml;
+(NSInteger)getWaiterNum;
+(int)calWaiterNum;
@end
